import type { FormItemRule } from 'element-plus'
export type LabelPosition = 'left' | 'right' | 'top' | 'bottom'

export interface IFormItem {
  field: string
  type: string
  label: string
  hidden?: boolean
  rules?: FormItemRule[]
  placeholder?: string
  options?: any[]
  otherOptions?: any
}

export interface IFormConfig {
  labelWidth?: string
  formItem: IFormItem[]
  labelPosition?: LabelPosition
  formBtns?: boolean
}
